package com.buydeem.adapter;

/**
 * 老登录接口适配(对象适配)
 *
 * @author zengchao
 * @date 2022-04-29 11:52:52
 */
public class OldLoginAdapter implements INewLoginService{

    private IOldLoginService oldLoginService;

    public OldLoginAdapter(IOldLoginService oldLoginService) {
        this.oldLoginService = oldLoginService;
    }

    @Override
    public void loginWithUserNameAndPassword(String userName, String password) {
        oldLoginService.login(userName,password);
    }
}
